package com.lhy.service.impl;

import com.lhy.dao.CostSettleDetailsDao;
import com.lhy.domain.CostSettleDetails;
import com.lhy.service.CostSettleDetailsService;
import com.lhy.utils.Pagination;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 汪
 */
@Service
public class CostSettleDetailsServiceImpl implements CostSettleDetailsService {
    @Autowired
    CostSettleDetailsDao costSettleDetailsDao;
    @Override
    public List<CostSettleDetails> showAllCostSettle() {
        return costSettleDetailsDao.showAllCostSettle();
    }

    @Override
    public List<CostSettleDetails> findSomeCost(Pagination<CostSettleDetails> page) {
        return costSettleDetailsDao.findSomeCost(page);
    }

    @Override
    public void deleteCost(Integer id) {
        costSettleDetailsDao.deleteCost(id);
    }
}
